package cn.itcast.dewu.service;

import cn.itcast.dewu.dto.LoginFormDTO;
import cn.itcast.dewu.dto.Result;
import cn.itcast.dewu.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpSession;

/**
* @author Administrator
* @description 针对表【tb_user】的数据库操作Service
* @createDate 2022-04-29 14:06:30
*/
public interface UserService extends IService<User> {

    Result sendCode(LoginFormDTO loginFormDTO);

    Result login(LoginFormDTO loginForm, HttpSession session);

    Result logout(String token);

    Result me();

    Result getFollowee(Long userId);

    Result getFans(Long userId);

    Result resUserPassword(LoginFormDTO loginForm);

    Result loginByPassword(LoginFormDTO loginForm);
}
